package com.swordxu.yim.android.ui.tool;

import android.content.Context;
import android.graphics.Bitmap;

/**
 * Created by 徐晓明 on 2015/1/8.
 */
public class DisplayBitmapCache {
    private static DisplayBitmapCache instance = null;
    private Context context = null;

    public static synchronized DisplayBitmapCache getInstance(Context c) {
        if (null == instance) {
            instance = new DisplayBitmapCache(c);
        }
        return instance;
    }

    private DisplayBitmapCache(Context c) {
        context = c;
    }

    public Bitmap get(String path) {
        Bitmap bmp = ImageTool.getBigBitmapForDisplay(path, context);
        return bmp;
    }
}

